package com.javaoopfive;

public  class Pet {
    private String name;
    private int health;
    private int love;



    public Pet(){
    }

    public Pet(String name, int health, int love) {
        this.name = name;
        this.health = health;
        this.love = love;
    }

    //吃饭的行为
    public Pet  eat(String name,String eatWhy) throws Exception{
     return null;
    }

    public void cd(){
        System.out.println("看病");
    }


    private   void run(){

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }

    public int getLove() {
        return love;
    }

    public void setLove(int love) {
        this.love = love;
    }
}
